/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package textfilewriter.entity.dimension;

/**
 *
 * @author GiangLT
 */
public class Network {

    private static final long serialVersionUID = 1L;
    private String networkId;
    private String networkName;
    private Long busyHour;
    private String networkSegment;
    private Long networkChannel;

    public Network() {
    }

    public Network(String networkId) {
        this.networkId = networkId;
    }

    public String getNetworkId() {
        return networkId;
    }

    public void setNetworkId(String networkId) {
        this.networkId = networkId;
    }

    public String getNetworkName() {
        return networkName;
    }

    public void setNetworkName(String networkName) {
        this.networkName = networkName;
    }

    public Long getBusyHour() {
        return busyHour;
    }

    public void setBusyHour(Long busyHour) {
        this.busyHour = busyHour;
    }

    public String getNetworkSegment() {
        return networkSegment;
    }

    public void setNetworkSegment(String networkSegment) {
        this.networkSegment = networkSegment;
    }

    public Long getNetworkChannel() {
        return networkChannel;
    }

    public void setNetworkChannel(Long networkChannel) {
        this.networkChannel = networkChannel;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (networkId != null ? networkId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Network)) {
            return false;
        }
        Network other = (Network) object;
        if ((this.networkId == null && other.networkId != null) || (this.networkId != null && !this.networkId.equals(other.networkId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "textfilewriter.entity.DimNetwork[ networkId=" + networkId + " ]";
    }
}
